package cn.zuo.utils;

import cn.zuo.service.Talking;

import java.util.HashMap;
/**
 * @Author 白白旧维
 * @Date 2021/7/7 11:13
 */
public class TalkingPool {
    private static HashMap<String, Talking> map = new HashMap<>();

    public static HashMap<String, Talking> getMap() {
        return map;
    }

    public static void setTalking(String key, Talking talking){
        map.put(key,talking);
    }

    public static Talking getTalking(String key){
        return map.get(key);
    }

    public static void removeTalking(String key){
        map.remove(key);
    }


}
